package net.schmurgon.gwt.request;

import com.google.gwt.valuestore.shared.RecordChangedEvent;
import net.schmurgon.gwt.request.CourseRecord;
import net.schmurgon.gwt.request.CourseChangedHandler;
import org.springframework.roo.addon.gwt.RooGwtMirroredFrom;
import net.schmurgon.server.domain.Course;
import com.google.gwt.event.shared.GwtEvent.Type;
import com.google.gwt.valuestore.shared.WriteOperation;

@RooGwtMirroredFrom(Course.class)
public class CourseRecordChanged extends RecordChangedEvent<CourseRecord, CourseChangedHandler> {

    public static final Type<net.schmurgon.gwt.request.CourseChangedHandler> TYPE = new com.google.gwt.event.shared.GwtEvent.Type<net.schmurgon.gwt.request.CourseChangedHandler>();

    public CourseRecordChanged(CourseRecord record, WriteOperation writeOperation) {
        super(record, writeOperation);
    }

    public Type<net.schmurgon.gwt.request.CourseChangedHandler> getAssociatedType() {
        return TYPE;
    }

    protected void dispatch(CourseChangedHandler handler) {
        handler.onCourseChanged(this);
    }
}
